const homeModule = {
  namespaced: true,
  state: {
    title: "后台管理系统",
    isCollapse: false,
    adminname: localStorage.getItem("adminname") || "",
  },
  mutations: {
    changeCollapse(state) {
      state.isCollapse = !state.isCollapse;
    },
    changeName(state, payload) {
      state.adminname = payload.name;
    },
  },
};

export default homeModule;
